//
//  F.h
//  p2p
//
//   Formatter 工具类
//  Created by mokai on 14-7-29.
//  Copyright (c) 2014年 cloudyoo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface F : NSObject

+(NSString *)yyyyMMddFromDate:(NSDate *)date;
+(NSDate *)yyyyMMddFromString:(NSString *)str;

+(NSString *)yyyyMMddHHmmFromDate:(NSDate *)date;
+(NSDate *)yyyyMMddHHmmFromString:(NSString *)str;

+(NSString *)yyyyMMddHHmmssFromDate:(NSDate *)date;
+(NSDate *)yyyyMMddHHmmssFromString:(NSString *)str;

+(NSString *)HHmmFromDate:(NSDate *)date;
+(NSDate *)HHmmFromString:(NSString *)str;

+(NSString *)yyyyMMFromDate:(NSDate *)date;
+(NSDate *)yyyyMMFromString:(NSString *)str;

+(NSString *)MMddFromDate:(NSDate *)date;
+(NSDate *)MMddFromString:(NSString *)str;


+(NSString *)GMTFromDate:(NSDate *)date;
+(NSDate *)GMTFromString:(NSString *)str;

//加密手机号  139****1234
+(NSString *)secureMobile:(NSString *)mobile;
+(NSString *)secureBankCard:(NSString *)card;
+(NSString *)securePersonID:(NSString *)card;

+ (NSString *)numberFormat:(NSString *)number;

//消除多余0
+(NSString *)clearZeroWithString:(NSString *)number;
//消除多余0
+(NSString *)clearZeroWithDouble:(double)number;

//bytes转换成mb
+(NSString *)MBWithData:(NSData *)data;
+(NSString *)MBWithBytes:(void *)bytes;
+(NSString *)MBWithBytesSize:(long long)bytes;
@end
